Woocommerce\Pagarme\Model\Subscription A

Total Complexity 74
Dependencies 18
Dependents 10
Total lines 455
Lines of code 333
Logical lines of code 176
Comment lines 45
Methods 29
Properties 3

Methods 29

Method Rating Maintainability Complexity Lines of code
processSubscription()
S
47 5 38
addSupportToSubscription()
S
49 4 35
processFreeTrialSubscription()
S
49 4 31
processChangePaymentSubscription()
S
50 4 29
hasOneInstallmentPeriodInCart()
S
59 4 15
createCreditCard()
S
58 4 14
getPagarmeIdFromLastValidOrder()
S
59 4 14
getRecurrenceCycle()
S
63 4 12
setPaymentEnabled()
S
67 4 8
hasSubscriptionFreeTrial()
S
70 3 6
hasSubscriptionProductInCart()
S
70 3 6
getCardDataByResponse()
S
59 2 15
convertOrderObject()
S
58 2 15
addMetaDataCard()
S
65 3 9
getPagarmeCustomer()
S
66 2 8
getCardSubscriptionData()
S
69 2 7
createCustomerPagarmeIdOnPlatformIfNotExists()
S
64 2 9
getChargesByResponse()
S
71 2 6
getTransactionsByCharges()
S
71 2 6
getCardDataByTransaction()
S
72 2 6
isChangePaymentSubscription()
S
68 2 7
canUpdatePaymentMethod()
S
71 2 6
__construct()
S
65 2 10
saveCardInSubscription()
S
75 1 4
formatPaymentMethod()
S
74 1 4
addMetaDataCardByResponse()
S
75 1 4
getConfig()
S
82 1 3
hasSubscriptionPlugin()
S
80 1 3
allowInstallments()
S
80 1 3